$(function(){
	/*
	//注册第三方控件
	$(':checkbox,:radio').iCheck({
	    checkboxClass: 'icheckbox_square-green',
	    radioClass: 'iradio_square-green',
	});
	//注册第三方控件到rest
	$("form :reset").on("click",function(){
		var $cb = $(this).closest("form").find(":checkbox,:radio");
		window.setTimeout(
				  function() {
					  $cb.iCheck('update');
				  }, 0);
	});
	*/

});


function __p_resizeable($table){
    $(window).resize(function() {
    	$table.datagrid("resize",{
			width: $table.datagrid("getDefaultWidth"),
			height: $table.datagrid("getDefaultHeight")
    	});
    });
    window.setTimeout(function(){
        $(window).resize();
    },100);
}

$(function() {
	window.before && window.before();
	window.init && window.init();
	window.after && window.after();
});
